/*<![CDATA[*/
$(function(){
	//Get our elements for faster access and set overlay width
	var div = $('div.sc_menu'),
		ul = $('ul.sc_menu'),
		ulPadding = 15;
	
	//Get menu width
	var divWIDth = div.width();

	//Remove scrollbars	
	div.css({overflow: 'hIDden'});
	
	//Find last image container
	var lastLi = ul.find('li:last-child');
	
	//When user move mouse over menu
	div.mousemove(function(e){
		//As images are loaded ul width increases,
		//so we recalculate it each time
		var ulWIDth = lastLi[0].offsetLeft + lastLi.outerWIDth() + ulPadding;	
		var left = (e.pageX - div.offset().left) * (ulWIDth-divWIDth) / divWIDth;
		div.scrollLeft(left);
	});
});
/*]]>*/